﻿using System;
using System.Collections.Generic;
using System.Text;
using Helpers.Enums;

namespace Helpers
{
    public class ApiCacheOptions
    {
        internal const string SectionName = "ApiCacheOptions";

        /// <summary>
        /// 缓存到哪里
        /// </summary>
        public CacheStoreOnEnum DefaultCacheStoreOn { get; set; } = CacheStoreOnEnum.WeedFs;
        /// <summary>
        /// 
        /// </summary>
        public CacheKeyBuildFromEnum DefaultCacheKeyBuildFrom { get; set; } = CacheKeyBuildFromEnum.Query;

        public Uri WeedFsUrl { get; set; }
        /// <summary>
        /// 路径的前缀,以/开头,结尾不用加/
        /// </summary>
        public string PreFullPath { get; set; }
        /// <summary>
        /// 路径的后缀,默认为.s
        /// </summary>
        public string SufFullPath { get; set; } = ".s";
        public static string DefaultTtl { get; set; } = "24h";
    }
}
